-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always use h1 for first heading on a page #3009
Always use h1 for first heading on a page #3009
Conversation
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
It looks like this "fix" sometimes results in pages with multiple |
Can you provide a double H1 example? I'm having trouble finding one. |
Here are all of them in the 8.13 version of the Observability guide:
So there are not too many in Observability docs, but in bigger/older books there are many more. For example, in v8.13 of the Elasticsearch guide 843 out of 1815 HTML files contain more than one |
Discussed in metrics mtg this morning. @KOTungseth will ask Katy on Friday if no H1 is better or worse than multiple H1s. |
Ok I tried a different approach here: trying to use the built-in AsciiDoc document header. It looks like we set the It's not as simple as changing that option. This PR would also:
|
Clicked around a bit.
|
If these are the only problems, that would be good news! For the first, this week we plan to replace the current landing page with a Docsmobile-powered one. And for the second, that is a problem that JavaScript can solve, which is my specialty! |
Awesome! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Nice fix for that 🐛 in 34a16c6. I've clicked around as much as I can, and I'm not seeing any new 🐛s.
🐦
This reverts commit d16085b.
…)" (elastic#3018)" This reverts commit 8406230.
* update name of css and js files * fix tests * Revert "Revert "Always use h1 for first heading on a page (#3009)" (#3018)" This reverts commit 8406230. --------- Co-authored-by: bmorelli25 <[email protected]>
Related to #2768 (specifically #2768 (comment))
Fixes #1614
I think this should force the first heading on every page to be anSwitched to a different approach detailed in #3009 (comment) below.h1
. However, this fix seems to easy so I'm not sure if I'm misunderstanding the total impact of this change. Opening this PR to see if the PR preview builds and what it looks like before fixing tests.